import unittest
from ddt import ddt,data,unpack

#案例1：单个数据
# @ddt
# class Test1(unittest.TestCase):
#     @data_discuz('111','122','133','144')
#     def test1(self,value):
#         print('打印value的值'+value)
#         self.assertIn('1',value)

#案例2：组合数据，不拆分
@ddt
class Test2(unittest.TestCase):
    @data(['aaa','abb','acc'],['add','aee','aff'])
    def test2(self,value):
        print(value)

@ddt
class Test3(unittest.TestCase):
    @data(['a11','a22','a33'],['aa1','aa2','aa3'],['aaa','abb','acc'])
    @unpack
    def test3(self,value1,value2,value3):
        print(value1,value2,value3)


#执行一下
if __name__ == '__main__':
    unittest.main()